$feedback-font-size: 1rem;

// Android header border
.header-md:after {
  height: 0;
}


ion-toolbar {
  --background: transparent !important;
  --border-width: 0 !important;
  --box-shadow: none;
  --color: white;
  --min-height: 52px !important;
}

// content fullscreen
ion-content {
  --padding-top: 0;
}

// searchbar background (scroll down)
.scroll-down .sc-ion-searchbar-ios-h {
  --background: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07)
}
// searchbar background (initial)
.sc-ion-searchbar-ios-h {
  padding-top: 1rem;
  padding-bottom: 1rem;
  --background: var(--bg-primary-color);
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

 // searchbar inner elements
.header-search {
  display: flex;
  align-items: center;

  ion-search {
    flex-grow: 1;
    width: 0;
  }

  ion-icon {
    width: 36px;
    margin-right: 0.5rem;
    height: 36px;
  }
}

// searchbar icon color
.icon-dark {
  fill: #aaa;
}

.icon-light {
  fill: #f2f2f2;
}

// content without sildes
.pullbox {
  position: relative;
  .pullcontent {
   z-index: 1;
   transform: translateY(0px);
 }

 .pullbox-refresher {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   margin: auto;
   z-index: 0;
   .refreshing-icon {
     animation: smileani 0.2s;
     margin-top: 20px;
   }
   ion-icon {
     font-size: 2.5rem;
     margin-top: 20px;
     transition: transform 0.2s;
   }
 }  

 .can-refresh ion-icon {
   transform: rotate(180deg);
 }
} 

.button {
  padding: 0px;

 //  .widget-name {
 //    min-height: 2.7rem;
 //    display: block;
 //  }
}


.card-slide-item {
  // margin-top: 10px;
  // padding: 0 15px;
  padding-bottom: 60%;
  position: relative;

  .card-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  ion-slide img {
    width: 100%;

    // border-radius: 5px;
  }
}

.widgets {
  // background-color: #fff !important;
  padding: 0.2rem 0;

  ion-col {
    padding: 0rem 0;
    // background-color: #fff !important;

    border-bottom: 0;
    border-right: 0;
    min-height: 6.5rem;

    // margin-bottom: 0.6rem;
    .button {
      padding: 0.2rem 0;
      background-color: transparent;
      font-size: 1.3rem;

      .bgimage {
        position: relative;
        width: 3.7rem;
        height: 3.7rem;
        margin: .5rem auto;

        img {
          position: absolute;
          top: 50%;
          left: 50%;
          margin-top: 0.5rem !important;
          transform: translate(-50%, -50%)
        }
      } 
    }
  }
}

.quick-bind {
  margin-top: 10px;
  padding: 0 15px 20px 15px;

  .quick-bind-inner {
    background-color: #45AF67;
    color: rgb(24, 53, 116);
    padding: 3px;
    white-space: normal;
    border-radius: 5px;
  }
}


.sign {
  // background-color: #fff !important;
  margin-top: 0px;
  padding: 0;

  .item-ios.item-block .item-inner {
    border-bottom: 0 !important;
  }

  ion-col {
    border-right: 0;
    border-bottom: 0;
    margin: 0 !important;
    padding: 0 0 0 5px;

    img {
      margin: 0.3rem !important;
      width: 3.0rem;
      height: 3.0rem;
    }
  }

  .label-ios {
    margin: 0 !important;
  }
}

.links {
  margin-top: 0px;
  padding: 10px 15px;

  ion-col {
    // background-color: #fff !important;
    border-right: 0;
    border-bottom: 0;
    margin: 0px !important;
    padding: 0;

    button {
      // background-color: #fff !important;
      padding: 0px;
      margin: 0px;
      width: 100%;
      background: transparent;

      img {
        border-radius: 5px;
        // background-color: #fff !important;
        width: 100%;
        height: 100%;
      }
    }
  }
}

.service {
  position: absolute;
  z-index: 10;
  width: 56px;
  height: 56px;
  bottom: 0;
}


.news-container {
  .viewmore {
    font-size: small;
    color: gray;
    display: inline-flex;
    float: right;

    // padding-right: 12px;
    .icon-ios {
      color: #d5d5d5;
      padding-left: 3px;
    }
  }

  .category {
    padding: 10px 10px;

    ion-note {
      font-size: 1.5rem;
      padding-left: 8px;
      padding-top: 5px;
      font-weight: 700;
      color: var(--text-primary-color);
    }
  }

  .fih-news-card-box{
   display: inline-flex;
   padding: 0 8px 8px 8px; 
  }

  .fih-news-card {
    margin-left: 10px;
    border: var(--border-primary);
    border-radius: 5px;
    width: 132px;

    .preview-image {
      border-radius: 5px 5px 0 0;
      background-position: center center;
      background-repeat: no-repeat;
      background-size: cover;
      padding-bottom: 75%;
      position: relative;

      .site {
        padding: 4px;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-primary-color);
        position: absolute;
        bottom: 0;
        background-color: orange;
      }
    }

    .fih-news-des-container {
      padding: 0 4px;
      font-size: 1.3rem;

      .date {
        color: #aaa;
        font-size: $feedback-font-size !important;
      }

      .fih-news-des {
        p {
          margin-bottom: 5px;
        }

        // min-height: 36px;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-line-clamp: 3;
        overflow: hidden;
        -webkit-box-orient: vertical;
      }
    }

  }


  h2 {
    white-space: normal;
    font-size: 1.5rem !important;
  }

  .item-ios {
    background-color: var(--bg-primary-color);
  }

  .news-imgae {
    position: relative;
    overflow: hidden;
    width: 8rem;
    height: 6.4rem;
    border-radius: 5%;

    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%)
    }
  }

  .item-ios ion-thumbnail img {
    border-radius: 0%;
    width: 100%;
  }

  .item-ios ion-thumbnail {
    vertical-align: top !important;
    margin: 0px !important;
  }


  .publish-time {
    padding-top: 3px;
    float: right;
    color: #aaa;
    width: max-content;
    font-size: $feedback-font-size !important;
  }


}


ion-thumbnail {
  width: 80px;
  --width: 64px !important;
}

ion-item {
  .feedback {
    display: flex;
    align-items: center;

    .view {
      width: 0;
      flex-grow: 1;
      display: flex;
      align-items: flex-end;

      .readqty {
        color: #aaa;
        padding-left: 4px;
        font-size: $feedback-font-size !important;
      }
    }

    .icon {
      color: #aaa;
      font-size: $feedback-font-size !important;
    }
  }
}



ion-grid {
  background: var(--bg-primary-color);
  color: var(--text-primary-color);
}

.news-container {
  color: var(--text-primary-color);
}


@keyframes smileani {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

.cardListTitle{
  color: brown;
  font-size: small;;
  text-align: left;
  margin-top: 10px;
  //border: 5px solid red;
}

.cardListNav{
  color: goldenrod;;
  font-size: xx-small;;
  text-align: right;
  float: right;
  margin-top: 30px;
  margin-right: -40px;

  //padding-bottom: 10px;
  //border: 5px solid red;
 
}